package cn.succy.geccospider.bean.jd;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;

/**
 * 汽车之家原创文章分页链接
 * http://www.autohome.com.cn/all/#pvareaid=2023310
 * @author lidapeng
 *
 */
@Gecco(matchUrl = "http://www.autohome.com.cn/all", pipelines = {"consolePipeline","articleListPipeline"})
public class ArticleList implements HtmlBean{

	private static final long serialVersionUID = 63001329158980477L;

	
	@Request
	private HttpRequest request;
	//#auto-channel-lazyload-article > ul:nth-child(1)
	//#auto-channel-lazyload-article > ul:nth-child(2)
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1)
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(2)
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1) > a > div.article-pic
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1) > a > h3
	//#auto-channel-lazyload-article > ul:nth-child(1)
	
//	@HtmlField(cssPath = "#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1)")
//	private List<ArticleDetail> detailList;
//	
//	
//	public List<ArticleDetail> getDetailList() {
//		return detailList;
//	}
//	public void setDetailList(List<ArticleDetail> detailList) {
//		this.detailList = detailList;
//	}
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1) > a > h3
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1) > a > p
	//#auto-channel-lazyload-article
	//#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1) > a > p
	//#ad_word_t1 > a
//	@Text
//	@HtmlField(cssPath="#auto-channel-lazyload-article > ul:nth-child(1) > li:nth-child(1) > a > p")
//	private String title;
//	
//	
//	public String getTitle() {
//		return title;
//	}
//	public void setTitle(String title) {
//		this.title = title;
//	}
	public HttpRequest getRequest() {
		return request;
	}
	public void setRequest(HttpRequest request) {
		this.request = request;
	}
	
	
	
	
	
}
